package com.liangzhong.facade.match
{
	import com.liangzhong.constants.ApplicationConstants;
	import com.liangzhong.facade.FacadeBase;
	import com.liangzhong.modules.match.command.MatchCommand;
	import com.liangzhong.proxy.match.MatchProxy;

	/**
	 *比赛代理 
	 * @author lxh
	 * 
	 */	
	public class MatchFacade extends FacadeBase
	{
		public function MatchFacade()
		{
			
		}
		override public function initializeController():void
		{
			//资源加载完成
			facade.registerCommand(ApplicationConstants.Match_LoadRes_Complete,MatchCommand);
			//开始游戏
			facade.registerCommand(ApplicationConstants.Match_GameStart,MatchCommand);
			facade.registerCommand(MatchProxy.GameStart_Result,MatchCommand);
			//比赛事件
			facade.registerCommand(MatchProxy.GameDes_Event_Result,MatchCommand);
			//游戏绝对状态
			facade.registerCommand(MatchProxy.GameDes_Status_Result,MatchCommand);
			//游戏描述
			facade.registerCommand(MatchProxy.GameDes_Result,MatchCommand);
			//射门
			facade.registerCommand(ApplicationConstants.Match_ShootBall,MatchCommand);
			facade.registerCommand(MatchProxy.ShootBall_Result,MatchCommand);
			//选择战术
			facade.registerCommand(ApplicationConstants.Match_SelectTactics,MatchCommand);
			facade.registerCommand(MatchProxy.SelectTactics_Result,MatchCommand);
			//调整位置
			facade.registerCommand(ApplicationConstants.Match_AdjustPlace,MatchCommand);
			facade.registerCommand(MatchProxy.AdjustPlace_Result,MatchCommand);
			//结束
			facade.registerCommand(MatchProxy.GameEnd_Result,MatchCommand);
			//记录
			//继续比赛
			//loadres comp
			//球员说话
			facade.registerCommand(MatchProxy.PlayerSaying_Result,MatchCommand);
			//聊天
			facade.registerCommand(ApplicationConstants.Match_Chat,MatchCommand);
			//铲球
			facade.registerCommand(ApplicationConstants.Match_Slide,MatchCommand);
			//突破
			facade.registerCommand(ApplicationConstants.Match_Cross,MatchCommand);
		}
	}
}